package com.example.gradu.graduationproject.vo;

import com.example.gradu.graduationproject.domain.Blog;

public class BlogRecommend extends Blog {
    private static final long serialVersionUID = 1L;

//    推荐分数
    private Double recommendScore;

    public BlogRecommend() {}

    public BlogRecommend(Blog blog, Double recommendScore) {
        super(); // 继承父类属性
        this.setBlogid(blog.getBlogid());
        this.setUserid(blog.getUserid());
        this.setBlogTitle(blog.getBlogTitle());
        this.setAiSummary(blog.getAiSummary());
        this.setBlogText(blog.getBlogText());
        this.setBlogPhotoSrc(blog.getBlogPhotoSrc());
        this.setDirectoryId(blog.getDirectoryId());
        this.setDirectoryName(blog.getDirectoryName());
        this.setDirectorySrc(blog.getDirectorySrc());
        this.setBlogUpdated(blog.getBlogUpdated());
        this.setTagId(blog.getTagId());
        this.setTagName(blog.getTagName());
        this.setOriginalBlogId(blog.getOriginalBlogId());
        this.setRelayContent(blog.getRelayContent());
        this.setIsDeletedBlog(blog.getIsDeletedBlog());

        this.recommendScore = recommendScore;
    }

    public Double getRecommendScore() {
        return recommendScore;
    }

    public void setRecommendScore(Double recommendScore) {
        this.recommendScore = recommendScore;
    }
}
